package com.top.mall.main.goods

import android.app.Activity
import android.content.Intent
import android.graphics.Color
import com.blankj.utilcode.util.BarUtils
import com.module.lemlin.owner.OwnerAbstractActivity
import com.top.mall.R
import kotlinx.android.synthetic.main.activity_goods_search.*
import kotlinx.android.synthetic.main.activity_goods_search.imageViewBack

class GoodsSearchActivity : OwnerAbstractActivity() {

    companion object {
        fun open(activity: Activity) {
            val intent = Intent(activity, GoodsSearchActivity::class.java)
            activity.startActivity(intent)
        }
    }

    override val layoutResId: Int
        get() = R.layout.activity_goods_search

    override fun stateBar(): StatusBar {
        return StatusBar(view = clGoodsSearchBar)
    }

    override fun initView() {

        imageViewBack.setOnClickListener { finish() }
        //设置状态栏颜色
        BarUtils.setStatusBarColor(this, Color.WHITE)

//        supportFragmentManager.beginTransaction()
//            .replace(R.id.frameCart, CartFragment.newInstance())
//            .commit()
    }
}